package com.example.mobile2021606128wje0427;

import android.content.ClipData;
import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.RecyclerView;

import java.util.ArrayList;
import java.util.List;

public class MainActivity extends AppCompatActivity {
    private RecyclerView rvMainTingchechang;
    private List<tingchechang> list= new ArrayList<>();
//    private int[] imageView={R.drawable.tngchechang};


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initView();
        initData();
    }

    private void initView() {
        rvMainTingchechang = (RecyclerView) findViewById(R.id.rv_main_tingchechang);
    }
    private void initData(){
        list.add(new tingchechang(R.drawable.tngchechang, "高明停车场", "20", "10/小时", "20公里", "高明学府路9号","更多信息"));
        list.add(new tingchechang(R.drawable.tngchechang, "南海停车场", "20", "10/小时", "20公里", "南海科技路9号","更多信息"));
        list.add(new tingchechang(R.drawable.tngchechang, "三水停车场", "20", "10/小时", "20公里", "三水江湾路9号", "更多信息"));
        list.add(new tingchechang(R.drawable.tngchechang, "广州停车场", "20", "15/小时", "20公里", "广州市海珠区海珠路9号", "更多信息"));
        list.add(new tingchechang(R.drawable.tngchechang, "深圳停车场", "20", "20/小时", "20公里", "深圳南沙港9号", "更多信息"));




    }
}